dnd: No need to reset the icon
authorBenjamin Otte <otte@redhat.com>
Wed, 2 Dec 2015 14:22:23 +0000 (15:22 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 2 Dec 2015 14:22:23 +0000 (15:22 +0100)
When we start a drag cancel animation, we can just keep the existing
window. The reset was only necessary to convert from cursor icon to
window and we removed the cursor handling.

gtk/gtkdnd.c

index 052c9f168d43f841c8116a7d121498c701f95d27..0f803f65ce6ee8fd2a5d0f7f2d811ad14a5dc62a 100644 (file)
@@ -3116,9 +3116,6 @@ gtk_drag_drop_finished (GtkDragSourceInfo *info,
 
           info->cur_screen = gtk_widget_get_screen (info->widget);
 
-          if (!info->icon_window)
-            set_icon_helper (info->context, gtk_icon_helper_get_definition (info->icon_helper), 0, 0);
-
           gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT, 17, gtk_drag_anim_timeout, anim, (GDestroyNotify) gtk_drag_anim_destroy);
         }
     }